<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            border: 0;
        }

        body {
            width: 100vw;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #2C3E50;
        }

        main {
            width: 150px;
            height: 60px;
            border: 1px solid #D35400;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            background: none;
            overflow: hidden;
            box-shadow: 0 3px 8px rgba(0, 0, 0, .3);


        }

        .btn {
            text-decoration: none;
            letter-spacing: .5em;
            color: #fff;
            text-transform: uppercase;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            width: 100%;
            height: 100%;
        }

        .btn::after {
            position: absolute;
            content: "";
            width: 0%;
            height: 100%;
            background-color: #D35400;
            z-index: -1;
            transition: all .8s;
            transform: skewX(-45deg);
        }

        main:hover .btn::after {
            width: 200%;
            /* height: 200%; */
        }
    </style>
</head>

<body>
    <main>
        <a href="#" class="btn"> Afeibtn</a>
    </main>
</body>

</html>